<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="../vue-day01/js/vue-2.6.12.js"></script>
</head>
<body>



<div id="app">


<btn-counter></btn-counter>
<btn-counter></btn-counter>
<btn-counter></btn-counter>
<btn-counter></btn-counter>


</div>


<script>
<!--	全局注册的组件-->
	Vue.component("btn-counter",{
	template:`<button type="button" @click="count++">点击了{{count}}</button> `,
	  data:function () {
	  
	  return {
	    
	    count:0,
	    
	  }
	  
      }
	  
	
	
	});
	
	let app = new Vue({
	  
	  el:"#app",
	  
	})
	
	
</script>


</body>
</html>